<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <title>抱团商家</title>
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui,viewport-fit=cover"/>
  <meta name="keywords" content="抱团">
  <meta name="description" content="抱团">
  <script type="text/javascript" src="../common/js/base.js" charset="UTF-8"></script>
  <link rel="stylesheet" type="text/css" href="../common/css/elementui.min.css">
  <link rel="stylesheet" type="text/css" href="../common/css/animate.min.css">
  <link rel="stylesheet" type="text/css" href="../common/css/nanoscroller.css">
  <link rel="stylesheet" type="text/css" href="../common/css/swiper-bundle.min.css">
  <link rel="stylesheet" type="text/css" href="../common/css/base.css">
  <link rel="stylesheet" type="text/css" href="css/style.css">
  <script type='text/javascript' src="../common/js/jquery.min.js" charset="UTF-8"></script>
  <script type='text/javascript' src="../common/js/jquery.easing.js" charset="UTF-8"></script>
  <script type='text/javascript' src="../common/js/html2canvas.min.js" charset="UTF-8"></script>
  <script type="text/javascript" src="../common/js/layer/layer.js" charset="UTF-8"></script>
  <!-- <script type='text/javascript' src="../common/js/createjs.min.js" charset="UTF-8"></script> -->
  <script type="text/javascript" src="../common/js/wow.js" charset="UTF-8"></script>
  <!-- <script type='text/javascript' src="../common/js/city.js" charset="UTF-8"></script> -->
  <script type="text/javascript" src="../common/js/vue.js" charset="UTF-8"></script>
  <script type="text/javascript" src="../common/js/vue-resource.js" charset="UTF-8"></script>
  <script type="text/javascript" src="../common/js/axios.min.js" charset="UTF-8"></script>
  <script type='text/javascript' src="../common/js/elementui.min.js" charset="UTF-8"></script>
  <script type='text/javascript' src="../common/js/jquery.nanoscroller.js" charset="UTF-8"></script>
  <script type='text/javascript' src="../common/js/swiper.animate.min.js" charset="UTF-8"></script>
  <script type='text/javascript' src="../common/js/swiper-bundle.min.js" charset="UTF-8"></script>
  <script type='text/javascript' src="../common/js/helper.js" charset="UTF-8"></script>
</head>
<body>
<div class="wrapperbox mymessagepage hasmenu" id="app">
  <div class="mine">
    <div class="head">
      <img class="headimg" :src="merchant.logo_image_url">
    </div>
    <div class="myname">{{merchant.name}}</div>
    <div class="exit">
      <img class="back" src="images/back.png">
      <span class="exitright" v-on:click="logout">退出</span>
    </div>
  </div>
  <div class="message">
    <div class="cardname" v-on:click="bankcard">
      <span class="name1">我的银行卡信息</span>
      <div class="name2">
        <img src="images/right.png">
      </div>

    </div>
    <div class="cardname_last" v-on:click="changePwd">
      <span class="name1">修改密码</span>
      <div class="name2">
        <img src="images/right.png">
      </div>
    </div>
  </div>

  <div class="footer">
    <div class="item">
      <a href="shophome.html">
        <img class="itemimg" src="images/nav_home.png">
        <p class="itemname">首页</p>
      </a>
    </div>
    <div class="item">
      <a href="activity.html">
        <img class="itemimg" src="images/nav_activity.png">
        <p class="itemname">活动及销售</p>
      </a>
    </div>
    <div class="item">
      <a href="order.html">
        <img class="itemimg" src="images/nav_order.png">
        <p class="itemname">订单</p>
      </a>
    </div>
    <div class="item">
      <a href="my.html">
        <img class="itemimg" src="images/nav_my_active.png">
        <p class="itemname">我的</p>
      </a>
    </div>
  </div>
</div>
</body>
<script>
  $(function () {
    new Vue({
      el: '#app',
      data() {
        return {
          merchant: {},
        }
      },
      mounted() {
        wow = new WOW({
          animateClass: 'animated',
          offset: 0
        });
        wow.init();
        this.init();
      },
      methods: {
        init: function () {
          this.merchant = JSON.parse(localStorage.getItem('merchant'))
        },
        logout: function () {
          localStorage.removeItem('merchant_token')
          window.location.href = 'index.html'
        },
        bankcard: function () {
          window.location.href = 'bankcard.html'
        },
        changePwd: function () {
          window.location.href = 'reset.html'
        },
      }
    });
  })
</script>
</html>
